<? $page_title='分类信息' ?>
<?include "FASHION/page_header.phtml"?>

<{if $path}>
<div>
当前位置： / <a href="<{url('wareclass')}>">根</a>
<{foreach item=node from=$path}>
 / <a href="<{url('wareclass/pid/'.$node.id)}>"><{$node.title}></a>
<{/foreach}>
</div>
<{/if}>

<table class="list" cellpadding=0 cellspacing=0>
<tr class="nobg" >
	<th width="100">编号</th>
	<th>分类名</th>
	<th class="nobr" width="80">子分类</th>
	<th class="nobr" width="80">操作</th>
</tr>
<{if $wareclass}>
<{foreach item=cls from=$wareclass}>
<TR>
	<TD class="nobr center"><{$cls.code}></TD>
	<TD><{$cls.title}></TD>
	<TD class="center"><a href="<{url('wareclass/pid/'.$cls.id)}>">进入</a></TD>
	<TD class="center">
		<a href="<{url('wareclass-modify/id/'.$cls.id)}>">修改</a>
		<a href="javascript:dropcls(<{$cls.id}>)">删除</a>
	</TD>
</TR>
<{/foreach}>
<{/if}>
</TABLE>

<div><input type="button" class="button" value="添加" onclick="location.href='<? url('wareclass-add/pid/'.$node.id) ?>'" /></div>


<script language="JavaScript">
function dropcls(aid)
{
//	if(confirm("确定要删除该分类信息及其所有子信息吗?"))
//	{
//		$.get("<{url('wareclass-drop/id/ID')}>".replace('ID',aid),function(dat){
//			try{
//				var jsn = eval(dat);
//				if(jsn.result=='ok')
//					showMessage("操作成功!");
//				else
//					showMessage(jsn.message);
//				location.href=location.href;
//			}catch(e){
//				showMessage('服务器发生异常，返回结果未知!');
//			}
//		});
//	}
}
</script>

<?include "FASHION/page_footer.phtml"?>